{% extends "base.html" %}
{% block title %}
    首页
{% endblock %}

{% block  head %}
    <link rel="stylesheet" href="{{ url_for('static',filename='css/index.css') }}">

{% endblock %}

{% block  main %}
    <div class="index-main">
        {% for question in questions %}






            <ul>
                <li class="question-li">
                    <div class="user-ava">
                        <img src="{{ url_for('static',filename='image/avatar.jpg') }}">
                    </div>
                    <div class="question">
                        <div class="question-content">
                            <div>
                                <a class="title-link"
                                   href="{{ url_for('detail',question_id=question.id) }}">{{ question.title }} </a>
                            </div>
                            <span>{{ question.content }}</span>
                        </div>
                        <div class="question-info">
                            <span>{{ question.user.username }}</span>
                            <span>{{ question.create_time }}</span>
                        </div>
                    </div>
                </li>
            </ul>
        {% endfor %}
    </div>
{% endblock %}